package com.ruoyi.points.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * points对象 video_points
 * 
 * @author ruoyi
 * @date 2025-05-10
 */
public class VideoPoints extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 用户ID */
    @Excel(name = "用户姓名")
    private String userName;

    /** 积分 */
    @Excel(name = "积分")
    private Long points;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setPoints(Long points) 
    {
        this.points = points;
    }

    public void addPoints(Long points)
    {
        this.points += points;
    }

    public Long getPoints() 
    {
        return points;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("points", getPoints())
            .toString();
    }
}
